# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dmg2img
pkgver=1.6.7
pkgrel=1
pkgdesc="A CLI tool to uncompress Apple's compressed DMG files to the HFS+ IMG format"
url="http://vu1tur.eu.org/tools/"
arch="all"
license="GPL-2.0-only"
makedepends="
	bzip2-dev
	openssl-dev
	zlib-dev
	"
source="http://vu1tur.eu.org/tools/$pkgname-$pkgver.tar.gz
	openssl-compatibility.patch
	"
options="!check"  # no tests provided

build() {
	make PREFIX="/usr"
}

package() {
	make PREFIX="/usr" DESTDIR="$pkgdir" install
}

sha512sums="4c42841c5cdbf868b6038648a6c83e78d4b7f2010f7065d7b3f4c2c04d13af9489716c1dfa867aff5f3c3b3eef96dc3fc0610eff13fec139265f37f468e339e6  dmg2img-1.6.7.tar.gz
fbddcbdfe3fa6d54b43395f6e37a64bad94342a864202854ec1dbfe1cf7e26660d2ff60b216c4f002d7fae04832b00c82c7b3f8545f0753407144abb7dda85f3  openssl-compatibility.patch"
